package com.feng.chat.pojo;

import io.gitee.zerowsh.actable.annotation.AcColumn;
import io.gitee.zerowsh.actable.annotation.AcTable;
import io.gitee.zerowsh.actable.emnus.ColumnTypeEnums;

import java.time.LocalTime;

@AcTable(name = "article_tag",comment = "笔记标签表")
public class ArticleTag {
    @AcColumn(name = "id",comment = "笔记标签ID",type = ColumnTypeEnums.INT,length = 20,isAutoIncrement = true,isKey = true)
    private Integer id;

    @AcColumn(name = "user_id",defaultValue = "0",comment = "用户ID",type = ColumnTypeEnums.INT)
    private Integer user_id;

    @AcColumn(name = "tag_name", defaultValue = "", comment = "标签名", type = ColumnTypeEnums.VARCHAR, length = 20, isNull = false)
    private String tag_name;

    @AcColumn(name = "sort", defaultValue = "0", comment = "排序", type = ColumnTypeEnums.TINYINT)
    private Integer sort;

    @AcColumn(name = "created_at", comment = "创建时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime createdAt;

    @AcColumn(name = "updated_at", comment = "更新时间", type = ColumnTypeEnums.DATETIME, isNull = true)
    private LocalTime updatedAt;

}
